import { http } from '../service';

// 待办列表
export function queryTodoList(params: any) {
  return http.middleware({
    url: `/ctms/Rest/todoFinish/listByPage`,
    method: 'GET',
    params,
  });
}
// 获取待反馈列表

export function getPendingFeedbackTaskList(params: any) {
  return http.middleware({
    url: `/ctms/Rest/orgHome/getPendingFeedbackTaskList`,
    method: 'GET',
    params,
  });
}

// 获取项目申请详情
export function queryProjectApplyDetail(params: any) {
  return http.middleware({
    url: `/ctms/Rest/project/apply/info`,
    method: 'GET',
    params,
  });
}

// 待办数
export function todoCount(params?: any) {
  return http.middleware({
    url: `/ctms/Rest/todoFinish/todoCount`,
    method: 'GET',
    params,
  });
}

// 已办数
export function doneCount(params?: any) {
  return http.middleware({
    url: `/ctms/Rest/todoFinish/doneCount`,
    method: 'GET',
    params,
  });
}

// 待反馈数
export function pendingFeedbackTaskCount(params?: any) {
  return http.middleware({
    url: `/ctms/Rest/orgHome/pendingFeedbackTaskCount`,
    method: 'GET',
    params,
  });
}
